package com.meitianhui.convenitenbuy.module.mine.contract;

import android.content.DialogInterface;

import com.hyphenate.chat.EMConversation;
import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;

import java.util.List;

/**
  Created by amy on 2017/11/22.
 */

public interface MessageDispitchContract  {

    interface View extends BaseView<MessageDispitchContract.Presenter> {

        void refreshConversation();

        void dismissDialog(DialogInterface dialog);


    }

    interface Presenter extends BasePresenter {

        List<EMConversation> getConversationList();

        void addMessageListener();

        void remove(List<EMConversation> conversationList, int position, int which, DialogInterface dialog);
    }
}
